$(function(){
    $.ajax({
        url:'/employee/checkRootLogin',
        dataType: 'json',
        success: function(info){
            if (info.success) {
                console.log('登录了')
            }
            if( info.error == 400) {
                alert(info.message)
                location.href = 'login.html'
            }
        }
    })
})